package com.wx.mall.goods.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class StockDto {
    @ApiModelProperty(value = "当前页")
    Integer pageNum;

    @ApiModelProperty(value = "条数")
    Integer pageSize;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "SKU_ID")
    private Long skuId;

    @ApiModelProperty(value = "编码")
    private String encode;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "属性")
    private String spec;

    @ApiModelProperty(value = "SPU_ID")
    private Long spuId;

    @ApiModelProperty(value = "货号")
    private String spuNum;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "库存数量")
    private Long stockNum;

    @ApiModelProperty(value = "剩余库存")
    private Long residueStock;

    @ApiModelProperty(value = "出入库分类")
    private Integer discrepancy;

    @ApiModelProperty(value = "库存类型")
    private Integer stockType;

    @ApiModelProperty(value = "操作类型")
    private Integer operationType;

    @ApiModelProperty(value = "管理人员")
    private Integer adminId;

    @DateTimeFormat(pattern = "yy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private Date creationTime;

    @ApiModelProperty(value = "库存软删除")
    private Integer stockDelete;

    @ApiModelProperty(value = "排序")
    int sort;
}
